<?php

use Illuminate\Support\Facades\Route;

/**
 * 张飞路由
 */
Route::group(['namespace' => 'Api\v1'], function () {

    /**
     * 楼盘模块 测试文件1234567
     */
    //楼盘列表
    Route::get('realeEstate', 'RealeEstatecontroller@realeEstateList');
    //楼盘详情列表
    Route::get('realeEstateDetail', 'RealeEstatecontroller@realeEstateDetail');
    //楼盘信息存入ES
    Route::get('realeEstate_esCreate', 'RealeEstatecontroller@realeEstateEsCreate');
    //楼盘信息ES搜索
    Route::get('realeEstate_esIndex', 'RealeEstatecontroller@realeEstateEsIdex');
    //楼盘添加信息
    Route::post('realeEstateSave','RealeEstatecontroller@realeEstateSave');
    //楼盘信息删除
    Route::get('realeEstateDel','RealeEstatecontroller@realeEstateDel');
    //楼盘信息存入redis
    Route::get('realeEstateRedis','RealeEstatecontroller@realeEstateRedis');
    //楼盘信息ES搜索
    Route::get('realeEstateDetail', 'RealeEstatecontroller@realeEstateDetail');
    /**
     * 后台用户模块
     */
    //用户列表
    Route::get('adminList', 'AdminController@adminList');
    //用户列表搜索
    Route::get('adminSearch', 'AdminController@adminSearch');
    //编辑用户信息
    Route::post('adminSave', 'AdminController@adminSave');
    //添加用户信息
    Route::post('adminUpdate', 'AdminController@adminUpdate');
    //用户详情
    Route::get('adminDetail', 'AdminController@adminDetail');
    //用户删除
    Route::get('adminDel', 'AdminController@adminDel');
    //发送验证码
    Route::middleware(['throttle:uploads'])->group(function () {
        Route::post('sendCode', 'AdminController@sendCode');
    });
    //验证验证码
    Route::post('verifyCode', 'AdminController@verifyCode');
    //用户登录注册
    Route::post('adminLogin', 'AdminController@adminLogin');
    //用户绑定手机号
    Route::post('adminPhone', 'AdminController@adminPhone');
    //用户会员权限
    Route::post('adminMember','AdminController@adminMember');
    /**
     * 经纪人模块
     */
    //经纪人列表
    Route::get('borkerList', 'BorkerController@index');
    //经纪人详情
    Route::get('brokerDetail', 'BorkerController@brokerDetail');
    //删除经纪人信息
    Route::get('brokerDel', 'BorkerController@brokerDel');
    //编辑经纪人信息
    Route::post('brokerSave','BorkerController@brokerSave');
     //经纪人列表
    Route::get('borkerRedis','BorkerController@borkerRedis');
    //经纪人评论
    Route::get('lookComments','CommentsController@lookComments');
    //全部评论
    Route::get('comments','CommentsController@All');

     /**
      * 搜索记录
      */
     //搜索列表
    Route::get('seachList','SeachController@seachList');
    //搜索记录存入ES
    Route::get('SeachEsCreate','SeachController@SeachEsCreate');
    //热搜排行榜
    Route::get('seachRank','SeachController@seachRank');
    /**
     * 房源模块
     */
    //房源列表
    Route::get('fangList','FangController@fangList');
    //房源列表搜索
    Route::get('fangSearch','FangController@fangSearch');
     //编辑房源信息
     Route::post('fangSave','FangController@fangSave');
    //房源详情
    Route::get('fangDetail','FangController@fangDetail');
    //房源删除
    Route::get('fangDel','FangController@fangDel');

    /**
     * 房贷计算器
     */
    //等额本息
    Route::get('debx','MortgageController@debx');
    //等额本金
    Route::get('debj','MortgageController@debj');
    Route::post('brokerSave', 'BorkerController@brokerSave');
    /**
     * 地图列表
     */
    Route::get('cityList','CityController@index');
    /**
     * 直播
     */
    Route::get('play','BroadcastController@tlive');
    Route::get('blive','BroadcastController@blive');
    /**
     * 抽奖
     */
    Route::get('lottery','LotteryController@index');
    /**
     * 小区
     */
    //小区列表
    Route::get('communityList', 'CommunityController@communityList');
    //小区列表搜索
    Route::get('communitySearch', 'CommunityController@communitySearch');
    //编辑小区信息
    Route::post('communitySave', 'CommunityController@communitySave');
    //小区详情
    Route::get('communityDetail', 'CommunityController@communityDetail');
    //小区删除
    Route::get('communityDel', 'CommunityController@communityDel');
     //小区redis
     Route::get('communityRedis', 'CommunityController@communityRedis');
     /**
      * 日租房
      */
    //日租房列表
    Route::get('rzfangList','RzfangController@rzfangList');
    //日租房点赞
    Route::get('rzfangdian','RzfangController@rzfangdian');
    //日租房收藏
    Route::get('rzfangshou','RzfangController@rzfangshou');
    //日租房详情
    Route::get('rzfangDetail','RzfangController@rzfangDetail');
     //日租房转发
     Route::get('rzfangzhuan','RzfangController@rzfangzhuan');
    //日租房日榜
    Route::get('rzfangday','RzfangController@rzf_day_rank');
    //日租房周榜
     Route::get('rzfangweek','RzfangController@rzf_week_rank');
    //日租房周榜
    Route::get('rzf_redis','RzfangController@rzf_redis');

});
